import { Item } from '@/types/item'
export function saveList(val: Item[]): void {
  localStorage.setItem('list', JSON.stringify(val))
}
export function getList(): Item[] {
  const list = JSON.parse(localStorage.getItem('list') || '[]')
  return list
}
